package com.test.group6.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.test.group6.domain.EnterpriseInformation;
import com.test.group6.service.EnterpriseReviseService;

/**
 *@author jang_rdong 
 *@version 1.1
 * 
 */
@RestController
@RequestMapping("/EnterpriseReviseController")
public class EnterpriseReviseController {
	@Autowired
	private EnterpriseReviseService enterpriseReviseService;
	/**
	 *@param enterpriseInformation 企业信息
	 *@return {@link String}
	 */
	@RequestMapping("/reviseEnterprise")
	public String reviseEnterprise(EnterpriseInformation enterpriseInformation) {
		System.out.println(enterpriseInformation);
		int i=enterpriseReviseService.reviseEnterprise(enterpriseInformation);
		if (i==1) {
			return "success";
		}else {
			return "error";
		}
	}
	
}
